package com.talent.web.exception;

import com.talent.web.enums.TalentResponse;
import org.springframework.security.core.AuthenticationException;
/**
 * @ClassName：TalentAuthenticationException
 * @Author: hszhou
 * @Date: 2024/10/21 13:35
 * @Description: 认证异常
 */
public class TalentAuthenticationException extends AuthenticationException {


    private TalentResponse response;
    public TalentAuthenticationException(TalentResponse response){
        super(response.getMessage());
        this.response = response;
    }

    public TalentResponse getResponse() {
        return response;
    }

    public void setResponse(TalentResponse response) {
        this.response = response;
    }
}
